Skip to content

Add inline padding to FAQ gridline variant - #1441

Merged
rezrah merged 1 commit into
mainfrom
rezrah/add-faq-gridline-padding
Aug 11, 2026
Merged

Add inline padding to FAQ gridline variant#1441
rezrah merged 1 commit into
mainfrom
rezrah/add-faq-gridline-padding

Conversation

@rezrah

@rezrah rezrah commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Towards https://github.com/github/marketing-engineering/issues/6047

Adds inline padding to FAQ wherevariant="gridline". Only applies to mobile and tablet.

🔗 Preview

List of notable changes:

  • 20px at mobile
  • 36px at tablet
  • 0 at desktop

What should reviewers focus on?

  • Confirm values for spacing are correct

Steps to test:

  1. Use this story at different breakpoints

Supporting resources (related issues, external links, etc):

Contributor checklist:

  • All new and existing CI checks pass
  • Tests prove that the feature works and covers both happy and unhappy paths
  • Any drop in coverage, breaking changes or regressions have been documented above
  • UI Changes contain new visual snapshots (generated by adding update snapshots label to the PR)
  • All developer debugging and non-functional logging has been removed
  • Related issues have been referenced in the PR description

Reviewer checklist:

  • Check that pull request and proposed changes adhere to our contribution guidelines and code of conduct
  • Check that tests prove the feature works and covers both happy and unhappy paths
  • Check that there aren't other open Pull Requests for the same update/change

Screenshots:

Please try to provide before and after screenshots or videos

Before After
Screenshot 2026-08-10 at 18 02 42 Screenshot 2026-08-10 at 18 02 04

Copilot AI lite review requested due to automatic review settings August 10, 2026 17:03
@rezrah
rezrah requested a review from a team as a code owner August 10, 2026 17:03
@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5643700

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@primer/react-brand Patch
@primer/brand-docs Patch
@primer/brand-css Patch
@primer/brand-primitives Patch
@primer/brand-e2e Patch
@primer/brand-fonts Patch
@primer/brand-mcp Patch
@primer/brand-config Patch
@primer/brand-storybook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

🟢 No design token changes found

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the FAQ component’s gridline variant styling to add inline padding on narrower viewports, aligning the component’s content spacing for mobile and tablet while keeping desktop unchanged.

Changes:

  • Added padding-inline to gridline variant wrappers for mobile (--base-size-20).
  • Adjusted gridline variant padding at tablet breakpoint (min-width: 48rem) to --base-size-36, and reset to 0 at desktop (min-width: 63.25rem).
  • Added a changeset documenting the patch update for @primer/react-brand.
Show a summary per file
File Description
packages/react/src/FAQ/FAQ.module.css Adds responsive inline padding for the FAQ gridline variant wrappers (mobile/tablet) and resets at desktop.
.changeset/wide-faq-gridlines.md Records the change as a patch release for @primer/react-brand.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

@github-actions

Copy link
Copy Markdown
Contributor

🟢 No visual differences found

Our visual comparison tests did not find any differences in the UI.

@github-actions

Copy link
Copy Markdown
Contributor

🟢 Bundle size report

CheckMainBranchChange
UMD — full bundle (JS)102.02 kB102.02 kB🟢 No change
UMD — full bundle (CSS)67.75 kB67.73 kB✅ -17 B (-0.0%)
ESM — full bundle (JS + CSS)1.59 MB1.59 MB⬆️ +242 B (+0.0%)
ESM — tree-shaken simple (Button)70.92 kB71.01 kB⬆️ +92 B (+0.1%)
ESM — tree-shaken complex (ActionMenu)79.88 kB79.97 kB⬆️ +92 B (+0.1%)

@rezrah
rezrah requested a review from jesussandreas August 10, 2026 17:36
@github-actions

Copy link
Copy Markdown
Contributor

🟢 No unit test coverage changes found

All components and hooks with tests maintain the same coverage as the main branch.

@rezrah
rezrah merged commit 8040f9a into main Aug 11, 2026
18 of 20 checks passed
@rezrah
rezrah deleted the rezrah/add-faq-gridline-padding branch August 11, 2026 09:48
@primer primer Bot mentioned this pull request Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants